Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flip __DEV__ assignments in ReactDOMProduction-test #6399

Merged
merged 1 commit into from
Apr 2, 2016

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Apr 1, 2016

I think these two appear assignments need to be flipped around.

This test works correctly because today it only relies on fbjs warnings which are not affected by __DEV__ global and read from process.env.NODE_ENV which is set a few lines below.

In my testing, adding another test that actually relies on __DEV__ shows that the current behavior is incorrect.

@gaearon
Copy link
Collaborator Author

gaearon commented Apr 2, 2016

Accepting per conversation with @spicyj.

@gaearon gaearon merged commit 44c699a into master Apr 2, 2016
@gaearon gaearon deleted the gaearon-flip-dev branch April 2, 2016 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants